package com.example.myspringframework.test;

import com.example.myspringframework.context.annotation.Value;
import com.example.myspringframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Component
public class Car {
    @Value("benci")
    private String brand;
    @Value("9.9")
    private Double price;
    @Value("2025")
    private Integer year;
    @Value("2025-04-30")
    private LocalDate date;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                ", year=" + year +
                ", date=" + date +
                '}';
    }
}
